home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Re Using QuickDrawGX in ODF.1 < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  2.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Using QuickDrawGX in ODF
  2. Sent:        9/3/96 11:25 AM
  3. Received:    9/3/96 11:25 AM
  4. From:        "Scott Daniels" <scottdfl@sprynet.com>
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. Dave,
  10.  
  11. Thanks for the response. I understand what you are doing in your example,
  12. but what do I do about non-view contexts such as: FW_CPictureContext &
  13. FW_CBitmapContext? There appears to be many ODF-based contexts but only one
  14. GX-based context. I need the ones I specifically mentioned above. Do you
  15. know how to write them?
  16.  
  17. Thanks,
  18. Scott
  19.  
  20. ----------
  21. > From: Dave Wilson <dwilson@best.com>
  22. > To: OpenDoc Development Framework Discussion List
  23. <ODF-Interest@CILabs.ORG>
  24. > Subject: Re: Using QuickDrawGX in ODF
  25. > Date: Sunday, September 01, 1996 2:05 PM
  26. > Scott,
  27. > >I would like to draw text rotated on the Macintosh, and it appears that
  28. > >QuickDrawGX is the only way to do so? However, in looking at GX and ODF,
  29. it
  30. > >appears that if I want to render to the view, a bitmap shape, and other
  31. > >such graphics contexts, I must create these contexts myself?
  32. > In case it helps, you can take a look at my "GraphicsGX" sample in the
  33. > Developer University folder that comes with ODF. There I create a
  34. > viewContext for ODF drawing in one scope, and then a FW_CGraphicContextGX
  35. > in another scope to draw with GX, as indicated below
  36. > void CGraphicsGXFrame::Draw(etc.)
  37. > {
  38. >         this->MyDrawWithODF(ev, odFacet, invalidShape);
  39. >         {
  40. >                 FW_CGraphicContextGX gxContext(ev, odFacet,
  41. invalidShape);
  42. >                 this->MyDrawGXBoxes(ev, gxContext);
  43. >                 this->MyDrawGXText(ev, gxContext);
  44. >         }
  45. > }
  46. > >
  47. > >Are both of my assertions above valid? Is there any easy way to use just
  48. > >the text rendering part of GX and still keep using the existing ODF
  49. graphic
  50. > >contexts? Does anyone know of some easier way to render text characters
  51. > >that are rotated (I don't need the connected glyphs of GX, just the
  52. > >individual characters)?
  53. > GX is the only way I know of, and we are encouraged to use it with MacOS8
  54. > in the future.
  55. > -Dave
  56. > Dave Wilson
  57. > Personal Concepts
  58. > 635 Wellsbury Way
  59. > Palo Alto, CA 94306
  60. > voice: 415-494-6763
  61. > email: dwilson@best.com